Repository navigation
Fix partial outputs in the Qwen-Audio-Jev first-task example - #3999
Merged
Merged
Conversation
Write the completed JSON to a sibling temporary file and link it without replacing a racing output. Reject checkpoint paths before loading the model. Cover short writes and output conflicts in the example CI matrix. Signed-off-by: LauraGPT <zhifu.gzf@alibaba-inc.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first Jev example used to accept output paths inside the weights directory. A short write could also leave a truncated decision.json that a retry refused to replace.
Reject checkpoint destinations (including directory symlinks) and existing or dangling outputs before constructing the model. Finish writing a private sibling file before linking it into place; a concurrently created result is not replaced. Both tutorials explain the filesystem requirement.
Validation: on Shanghai Linux the original CLI failed 4 of 7 new output cases. The revised CLI passed all seven, including a real file-size limit and an exclusive-create race. The complete example workflow selection passed 27/27. One public instrument clip on an idle L20Z with the pinned official Tiny snapshot, offline: the 663 output bytes matched the earlier reference exactly (choice: bass). No changes to inference code or checkpoint files; not a general accuracy or durability benchmark.